﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using Gendarme.Framework;

namespace Commander.Prototype
{
	/// <summary>
	/// Interaction logic for ExplanationView.xaml
	/// </summary>
	public partial class ExplanationView : Window
	{

		public ExplanationView()
		{
			this.InitializeComponent();
			
			// Insert code required on object creation below this point.
		}

		public ExplanationView(Defect defect):this() {
			ruleName.Text = defect.Rule.Name;
			smellExplanation.Text = defect.Rule.Problem;
			smellSolution.Text = defect.Rule.Solution;
			smellLocation.Text = defect.Location.ToString();
		}
	}
}